package com.apple.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;
/*
* 员工实体类
* */
@Data
public class Employee implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private String username;

    private String name;

    private String password;

    private String phone;

    private String sex;

    private String idNumber;//身份证号 数据库中为id_number 在appliccation.yml中配置将其可以进行转换

    private Integer status;

    @TableField(fill = FieldFill.INSERT)    //自动填充，在插入数据时自动填充
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)     //在插入和更新数据时自动填充
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT)    //在插入数据时自动填充
    private Long createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)    //在插入和更新数据时自动填充
    private Long updateUser;

}
